Skip to main content
PUT
/
v1
/
notifications
/
routes
Create or update an event_type -> destination route
curl --request PUT \
  --url https://api-sandbox.featherhq.com/v1/notifications/routes \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "event_type": "<string>",
  "destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enabled": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "event_type": "<string>",
  "destination_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "enabled": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Map an event_type to a destination (idempotent on the pair).

event_type
string
required
Minimum string length: 1
destination_id
string<uuid>
required
enabled
boolean
default:true

Response

Successful Response

id
string<uuid>
required
organization_id
string<uuid>
required
event_type
string
required
destination_id
string<uuid>
required
enabled
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required